from django.contrib import admin
from django.urls import re_path
from django.conf.urls import include

from home.views import home_page, home_page_gallery, home_page_contact
from main.views import tb_login, tb_logout

urlpatterns = [
    # 首页模块
    re_path(r'^$', home_page, name='public'),
    re_path(r'^gallery/$', home_page_gallery, name='home_page_gallery'),
    re_path(r'^contact/$', home_page_contact, name='home_page_contact'),
    re_path(r'^accounts/login/$', tb_login, name='login'),
    re_path(r'^accounts/logout/$', tb_logout, name='logout'),
    # 主模块
    re_path(r'^main/', include('main.urls', namespace='main')),
    # 后台
    re_path(r'^htgl/', admin.site.urls, name='admin'),

]
